const moment = require('moment');
// // console.log(moment.unix(0));

// const startTime = moment(Date.now());
// console.log(startTime.format('YYYY-MM-DD HH:mm:ss'));

// const endTime = moment(Date.now()) + 1000*60*5;
// console.log(moment(endTime).format('YYYY-MM-DD HH:mm:ss'));

const date = Date.now() / 1000;
const nmu = parseInt(date);
console.log('nmu:' + nmu);

var timestamp = Date.parse(new Date());
console.log('timestamp:' + timestamp);

const time = Date.parse('2022-04-15 18:00:00') / 1000;
console.log('time:' + time);


for (let i = time; i <= nmu; i++) {
  console.log('123');
  console.log(i);
  i += 300;
}

const t = moment(1650019810).format('YYYY-MM-DD HH:mm:ss');
console.log('t:' + t);

const b = moment(1650020111).format('YYYY-MM-DD HH:mm:ss');
console.log('t:' + b);
1650020713
1650020713